import Router from "koa-router";
import { API } from "./config/api.config";
import ContentController from "./controller/content-controller";

import UploadComtroller from "./controller/upload-controller";
import indexController from "./controller/index-controller";
const router = new Router();
router.use(
  API.BLOG_INTERFACE_PREFIX,
  indexController.routes(),
  indexController.allowedMethods()
);

router.use(
  API.BLOG_INTERFACE_PREFIX,
  ContentController.routes(),
  ContentController.allowedMethods()
);

router.use(
  API.BLOG_INTERFACE_PREFIX,
  UploadComtroller.routes(),
  UploadComtroller.allowedMethods()
);
export default router;
